package com.geek.factory.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.geek.factory.entity.ProductStock;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface ProductStockMapper extends BaseMapper<ProductStock> {
    @Select("SELECT * FROM product_stock WHERE product_id = #{productId}")
    ProductStock selectByProductId(@Param("productId") Integer productId);
}
